package com.xxxx.server;


import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;

import java.util.Date;

public class T {

    public static void main(String[] args) {
        String compact = Jwts.builder()
                .setExpiration(new Date(new Date().getTime() + 604800 * 1000))
                .signWith(SignatureAlgorithm.HS256,"yeb-secret")
                .compact();
        System.out.println(compact);
    }

}
